<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>隐藏文本的方法</title>
  <style>
    body{
      margin: 0;
    }

    .logo {
      width: 190px;
      height: 80px;
      float: left;
      margin-top: 8px
    }

    .logo h1 {
      position: relative
    }

    .logo h1 .logo-bd {
      display: block;
      overflow: hidden;
      background: url(http://img.alicdn.com/tfs/TB1_uT8a5ERMeJjSspiXXbZLFXa-143-59.png) 0 0 no-repeat;

      /* text-indent:-9999px; */
      font-size:0;

      margin-left: 22px;
      padding-top: 58px;
      width: 142px;
    }

  </style>
</head>

<body>
<div class="logo">
  <h1>
    <a href="#" role="img" class="logo-bd clearfix">淘宝网</a>
  </h1>
</div>
</body>

</html>
